<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Members | $rxTools</title>
    <meta name="description" content="校管家前端团队工具库">
    <script src="/tools/rx.tools.js"></script>
    
    <link rel="preload" href="/tools/assets/css/styles.a1269b41.css" as="style"><link rel="preload" href="/tools/assets/js/app.a1269b41.js" as="script"><link rel="preload" href="/tools/assets/js/6.27ca699b.js" as="script"><link rel="prefetch" href="/tools/assets/js/4.b52bbfe2.js"><link rel="prefetch" href="/tools/assets/css/1.styles.5a8ea794.css"><link rel="prefetch" href="/tools/assets/js/1.5a8ea794.js"><link rel="prefetch" href="/tools/assets/css/2.styles.35543169.css"><link rel="prefetch" href="/tools/assets/js/2.35543169.js"><link rel="prefetch" href="/tools/assets/js/3.15e12b4b.js"><link rel="prefetch" href="/tools/assets/js/5.39105aa8.js"><link rel="prefetch" href="/tools/assets/js/7.86895104.js"><link rel="prefetch" href="/tools/assets/js/8.d01f9c0e.js"><link rel="prefetch" href="/tools/assets/js/9.5494f412.js"><link rel="prefetch" href="/tools/assets/js/10.7f3024d4.js"><link rel="prefetch" href="/tools/assets/js/11.6790e062.js">
    <link rel="stylesheet" href="/tools/assets/css/1.styles.5a8ea794.css"><link rel="stylesheet" href="/tools/assets/css/2.styles.35543169.css"><link rel="stylesheet" href="/tools/assets/css/styles.a1269b41.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/tools/" class="home-link router-link-active"><!----> <span class="site-name">$rxTools</span></a> <div class="links" style="max-width:nullpx;"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <div class="sidebar"><!---->  <ul class="sidebar-links"><li><div class="sidebar-group first"><p class="sidebar-heading open"><span>浏览器环境</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/tools/brower/env.html" class="sidebar-link">环境变量</a></li><li><a href="/tools/brower/event.html" class="active sidebar-link">事件处理</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/tools/brower/event.html#members" class="sidebar-link">Members</a></li><li class="sidebar-sub-header"><a href="/tools/brower/event.html#addwheellistener-⇒-function" class="sidebar-link">addWheelListener ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/brower/event.html#addresize-⇒-function" class="sidebar-link">addResize ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/brower/event.html#triggeronce-⇒-function" class="sidebar-link">triggerOnce ⇒</a></li><li class="sidebar-sub-header"><a href="/tools/brower/event.html#fireevent" class="sidebar-link">fireEvent</a></li></ul></li><li><a href="/tools/brower/element.html" class="sidebar-link">元素相关</a></li></ul></div></li><li><div class="sidebar-group"><p class="sidebar-heading"><span>javascript 工具</span> <!----></p> <ul class="sidebar-group-items"><li><a href="/tools/ext/array.html" class="sidebar-link">数组</a></li><li><a href="/tools/ext/date.html" class="sidebar-link">日期</a></li><li><a href="/tools/ext/number.html" class="sidebar-link">数值</a></li><li><a href="/tools/ext/object.html" class="sidebar-link">对象</a></li><li><a href="/tools/common.html" class="sidebar-link">其他</a></li></ul></div></li></ul> </div> <div class="page"> <div class="content"><p>#Event</p> <h2 id="members"><a href="#members" aria-hidden="true" class="header-anchor">#</a> Members</h2> <dl><dt><a href="#addWheelListener">addWheelListener</a> ⇒ <code>function</code></dt> <dd><p>添加鼠标滚轮事件监听</p></dd> <dt><a href="#addResize">addResize</a> ⇒ <code>function</code></dt> <dd><p>添加窗口resize事件监听</p></dd> <dt><a href="#triggerOnce">triggerOnce</a> ⇒ <code>function</code></dt> <dd><p>根据事件源决定事件执不执行，事件控制更灵活</p></dd> <dt><a href="#fireEvent">fireEvent</a></dt> <dd><p>触发事件 click</p></dd></dl> <p><a name="addWheelListener"></a></p> <h2 id="addwheellistener-⇒-function"><a href="#addwheellistener-⇒-function" aria-hidden="true" class="header-anchor">#</a> addWheelListener ⇒ <code>function</code></h2> <p>添加鼠标滚轮事件监听</p> <p><strong>Kind</strong>: global variable<br> <strong>Returns</strong>: <code>function</code> - 移除事件监听的函数</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>elem</td> <td><code>Element</code></td> <td>事件元素</td></tr> <tr><td>callback</td> <td><code>function</code></td> <td>回调函数</td></tr> <tr><td>useCapture</td> <td><code>Boolean</code></td> <td>是否捕获</td></tr></tbody></table> <p><a name="addResize"></a></p> <h2 id="addresize-⇒-function"><a href="#addresize-⇒-function" aria-hidden="true" class="header-anchor">#</a> addResize ⇒ <code>function</code></h2> <p>添加窗口resize事件监听</p> <p><strong>Kind</strong>: global variable<br> <strong>Returns</strong>: <code>function</code> - 移除事件监听</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>fn</td> <td><code>function</code></td> <td>回调函数</td></tr></tbody></table> <p><a name="triggerOnce"></a></p> <h2 id="triggeronce-⇒-function"><a href="#triggeronce-⇒-function" aria-hidden="true" class="header-anchor">#</a> triggerOnce ⇒ <code>function</code></h2> <p>根据事件源决定事件执不执行，事件控制更灵活</p> <p><strong>Kind</strong>: global variable<br> <strong>Returns</strong>: <code>function</code> - 移除事件监听</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>ignore</td> <td><code>Element</code></td> <td>忽略的事件源</td></tr> <tr><td>callback</td> <td><code>function</code></td> <td>回调函数</td></tr> <tr><td>eventName</td> <td><code>String</code></td> <td>事件名</td></tr></tbody></table> <p><a name="fireEvent"></a></p> <h2 id="fireevent"><a href="#fireevent" aria-hidden="true" class="header-anchor">#</a> fireEvent</h2> <p>触发事件 click</p> <p><strong>Kind</strong>: global variable</p> <table><thead><tr><th>Param</th> <th>Type</th> <th>Description</th></tr></thead> <tbody><tr><td>el</td> <td><code>Element</code></td> <td>元素</td></tr> <tr><td>name</td> <td><code>String</code></td> <td>事件名</td></tr></tbody></table></div> <div class="page-edit"><!----> <!----></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/tools/brower/env.html" class="prev">
          环境变量
        </a></span> <span class="next"><a href="/tools/brower/element.html">
          元素相关
        </a>
        →
      </span></p></div> </div> <!----></div></div>
    <script src="/tools/assets/js/6.27ca699b.js" defer></script><script src="/tools/assets/js/app.a1269b41.js" defer></script>
  </body>
</html>
